package org.example.design.责任;

/**
 * @Auther:Liu
 * @Testname:App
 * @Date:2025/8/15 12:34
 */
public class App {
    public static void main(String[] args) {
        Monitor monitor = new Monitor();
        Instructor instructor = new Instructor();
        Dean dean = new Dean();
        monitor.setNext(instructor);
        instructor.setNext(dean);
        monitor.handle(2);
    }
}
